﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt
{
	// Token: 0x020000A5 RID: 165
	public class TDropSequenceStmt : TCustomSqlStatement
	{
		// Token: 0x170000CE RID: 206
		// (get) Token: 0x06000524 RID: 1316 RVA: 0x002FCA2F File Offset: 0x002FAC2F
		// (set) Token: 0x06000525 RID: 1317 RVA: 0x002FCA37 File Offset: 0x002FAC37
		public virtual TObjectName SequenceName
		{
			get
			{
				return this.sequenceName;
			}
			set
			{
				this.sequenceName = value;
			}
		}

		// Token: 0x06000526 RID: 1318 RVA: 0x002FCA40 File Offset: 0x002FAC40
		public TDropSequenceStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstdropsequence;
		}

		// Token: 0x06000527 RID: 1319 RVA: 0x002FCA51 File Offset: 0x002FAC51
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			this.sequenceName = ((TDropSequenceSqlNode)this.rootNode).SequenceName;
			base.DatabaseObjects.Add(this.sequenceName);
			return 0;
		}

		// Token: 0x06000528 RID: 1320 RVA: 0x002FCA8D File Offset: 0x002FAC8D
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000529 RID: 1321 RVA: 0x002FCA9D File Offset: 0x002FAC9D
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001135 RID: 4405
		private TObjectName sequenceName;
	}
}
